package com.yunji.base.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yunji.common.annotation.Excel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

;

/**
 * @Description: 代理商加盟表$
 * @Author: HuaAo
 * @Date: 2024-04-02$
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("s_alliance")
public class AllianceDO implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    private Long memberId;

    /**
     * 加盟商姓名
     */
    @Excel(name = "加盟商姓名")
    @ApiModelProperty("加盟商姓名")
    private String name;

    /**
     * 手机号码
     */
    @Excel(name = "手机号码")
    @ApiModelProperty("手机号码")
    private String phone;

    /**
     * 站点省
     */
    @Excel(name = "站点省")
    @ApiModelProperty("站点省")
    private String siteProvince;

    /**
     * 站点省ID
     */
    @ApiModelProperty("站点省ID")
    private Long siteProvinceId;

    /**
     * 站点市
     */
    @Excel(name = "站点市")
    @ApiModelProperty("站点市")
    private String siteCity;

    /**
     * 站点市ID
     */
    @ApiModelProperty("站点市ID")
    private Long siteCityId;

    /**
     * 站点区
     */
    @Excel(name = "站点区")
    @ApiModelProperty("站点区")
    private String siteDistrict;

    /**
     * 站点区ID
     */
    @ApiModelProperty("站点区ID")
    private Long siteDistrictId;

    /**
     * 站点详细地址
     */
    @Excel(name = "站点详细地址")
    @ApiModelProperty("站点详细地址")
    private String siteAddress;

    /**
     * 售卖品类
     */
    @Excel(name = "售卖品类")
    @ApiModelProperty("售卖品类")
    private String sellType;

    /**
     * 图片地址
     */
    @Excel(name = "图片地址")
    @ApiModelProperty("图片地址，多张图片以逗号分隔离")
    private String albumPics;

    /**
     * 加盟状态（0已发起）
     */
    @Excel(name = "加盟状态", readConverterExp = "0-待审核 1-已入驻 2-已驳回")
    @ApiModelProperty("加盟状态 0-待审核 1-已入驻 2-已驳回")
    private String allianceStatus;

    /**
     * 入驻时间
     */
    @Excel(name = "入驻时间", width = 15)
    @ApiModelProperty("入驻时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date enterTime;

    //审核人
    @Excel(name = "审核人", width = 15)
    @ApiModelProperty("审核人")
    private String checkName;
    //审核时间
    @Excel(name = "审核时间", width = 15)
    @ApiModelProperty("审核时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date checkTime;

    @ApiModelProperty("备注")
    @Excel(name = "备注", width = 15)
    private String remark;


    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("创建时间")
    private Date createTime;

    /**
     * 更新人名称
     */
    @Excel(name = "更新人名称")
    @ApiModelProperty("更新人名称")
    private String updateBy;

    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("更新时间")
    private Date updateTime;

    @TableLogic
    @ApiModelProperty("删除状态 0-未删除 1-已删除")
    @Excel(name = "删除状态 0-未删除 1-已删除")
    private Integer delFlag;
}
